
   </div></td>
   <td id='sidecell'><div id='sidebox'>
    <h1>Settings</h1>
<?php
//If not logged in
if (!isset($_COOKIE['username'])) {
 mysql_close($connection);
 echo "<p>Not logged in!</p>";
}

else {
 //Settings
 //Direction
 $table = mysql_query("SELECT startingLanguage FROM users WHERE username = '{$_COOKIE['username']}'") or die('An error in the command');
 $startinglanguage = mysql_result($table, 0, 0);

 echo "<p>Starting language: <span class='likeLink' onClick='swichStartingLanguage(this.innerHTML)' id='startingLanguage'>{$startinglanguage}</span></p>";

 //Progress bar
 echo "<h1>Progress</h1><img src='progressbar.php' />";

 mysql_close($connection);
}
?>
   </div></td></tr></table>
  <div id='adBox'>
   <a href='http://www.mysql.com/'>
    <img id='mysql' onMouseOver='showImage("images/mysql.png", this.id)' onMouseOut='hideImage("images/mysqlBlur.png", this.id)' src='images/mysqlBlur.png' />
   </a>
   <a href='http://www.php.net'>
    <img id='php' onMouseOver='showImage("images/php.png", this.id)' onMouseOut='hideImage("images/phpBlur.png", this.id)' src='images/phpBlur.png' />
   </a>
   <a href='http://en.opensuse.org/Welcome_to_openSUSE.org'>
    <img id='opensuse' onMouseOver='showImage("images/opensuse.png", this.id)' onMouseOut='hideImage("images/opensuseBlur.png", this.id)' src='images/opensuseBlur.png' />
   </a>
  </div>
 </body>
</html>
